package com.yami.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.bean.model.MeltCloudChannel;
import com.yami.shop.bean.model.MeltCloudChannelUser;
import com.yami.shop.bean.model.MeltCloudUser;
import com.yami.shop.dao.MeltCloudChannelUserMapper;
import com.yami.shop.service.MeltCloudChannelUserService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
@AllArgsConstructor
public class MeltCloudChannelUserServiceImpl extends ServiceImpl<MeltCloudChannelUserMapper, MeltCloudChannelUser> implements MeltCloudChannelUserService {
    
    private final MeltCloudChannelUserMapper channelUserMapper;
    
    @Override
    public List<MeltCloudUser> getPrivateUserList(Long groupId, String channelId, String currentUserId) {
        return channelUserMapper.getPrivateUserList(groupId, channelId, currentUserId);
    }


    @Override
    public List<MeltCloudChannel> getChannelList(Long groupId, String userId) {
        return channelUserMapper.getChannelList(groupId, userId);
    }
}
